-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CI] Add ci workflows #6
Conversation
# TODO_NB - An important note to reference later | ||
# TODO_DISCUSS_IN_THIS_COMMIT - SHOULD NEVER BE COMMITTED TO MASTER. It is a way for the reviewer of a PR to start / reply to a discussion. | ||
# TODO_IN_THIS_COMMIT - SHOULD NEVER BE COMMITTED TO MASTER. It is a way to start the review process while non-critical changes are still in progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[linter-name (fail-on-found)] reported by reviewdog 🐶
# TODO_IN_THIS_COMMIT - SHOULD NEVER BE COMMITTED TO MASTER. It is a way to start the review process while non-critical changes are still in progress
.PHONY: todo_this_commit | ||
todo_this_commit: ## List all the TODOs needed to be done in this commit | ||
grep -n --exclude-dir={.git,vendor,.vscode,.idea} --exclude={Makefile,reviewdog.yml} -r -e "TODO_IN_THIS_" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[linter-name (fail-on-found)] reported by reviewdog 🐶
grep -n --exclude-dir={.git,vendor,.vscode,.idea} --exclude={Makefile,reviewdog.yml} -r -e "TODO_IN_THIS_"�
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @red-0ne!
.github/workflows/run-tests.yml
Outdated
with: | ||
go-version: "1.22.2" | ||
|
||
- name: Run golangci-lint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to install and configure it first. I don't remember exactly why, but we don't use the official github action on our main repo. We can try it in this repo! :)
If you don't want to look into this now — I'm happy to pick it up! In that case please remove make go_lint
step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@okdas , I'd love to have a linter in this repo. Not sure how to proceed though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@red-0ne you can comment out this step, and I'll set up the golangci-lint
next week then, would that work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@red-0ne I've added a commit to remove a dependency on check_go_version
make target. If this looks good to you, please go ahead and merge at your convenience.
CI Update
This pull request includes the following updates to the CI workflow:
Issue and PR templates
Added the same issue and PR templates as in
poktroll
.Workflows
Added reviewdog CI workflow including
TODO_IN_THIS_
checks.Makefile targets
Added basic
Makefile
targets:make test_all
make go_lint
TODO
related targets